login = ->
	chrome.extension.sendRequest {loginInfo:1}, (response)->
		if response and response.loginInfo
			document.querySelector('[name=TPL_password]').value = response.loginInfo.password
			document.querySelector('[name=TPL_username]').value = response.loginInfo.username
			simulateClick document.querySelector('#J_SubmitStatic')
setTimeout login,3000
